<?php
/*
	Block Fan Page - PrestaShop
	Author: Jose Andres Alvarez Skinner
	Version: 0.1
*/
class BlockAdvert extends Module
{
	function __construct()
	{
		$this->name = 'blockadvert';
		$this->tab = 'Blocks';
		$this->version = 0.1;

		parent::__construct(); // The parent construct is required for translations

		$this->page = basename(__FILE__, '.php');
		$this->displayName = $this->l('Block Advert Page');
		$this->description = $this->l('Add Advert Page');
	}

	function install()
	{
		if (!parent::install())
			return false;
		if (!$this->registerHook('rightColumn'))
			return false;
		return true;
	}

	/**
	* Returns module content
	*
	* @param array $params Parameters
	* @return string Content
	*/
	function hookLeftColumn($params)
	{
		return $this->display(__FILE__, 'blockadvert.tpl');
	}
	
	public function hookRightColumn($params)
	{
		return $this->hookLeftColumn($params);
	}

}

?>